# Contributor: Adam Plumb <adamplumb@gmail.com>
# Maintainer: Adam Plumb <adamplumb@gmail.com>
pkgname=libadwaita
pkgver=1.1.2
pkgrel=0
pkgdesc="Building blocks for modern GNOME applications"
url="https://gitlab.gnome.org/GNOME/libadwaita"
arch="all !s390x !riscv64"
license="LGPL-2.1-or-later"
makedepends="meson sassc gtk4.0-dev gobject-introspection-dev vala gi-docgen"
checkdepends="xvfb-run ttf-dejavu" # needs any font
subpackages="$pkgname-dev $pkgname-lang $pkgname-doc $pkgname-demo"
source="https://gitlab.gnome.org/GNOME/libadwaita/-/archive/$pkgver/libadwaita-$pkgver.tar.gz"

build() {
	abuild-meson . output -Dexamples=true -Dgtk_doc=true
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	xvfb-run meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

demo() {
	pkgdesc="$pkgdesc (libadwaita demo)"
	amove usr/share usr/bin
}

sha512sums="
9582bd810e5ccd6bbceff93912dd3654f27f473605620a96ae92d4213c94c4bd5daaccdec896020d7c4d22678b687675db9ff30d633b0e440966f330876a8710  libadwaita-1.1.2.tar.gz
"
